﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using CYTS.Aoyou.Framework.Config;

namespace CYTS.Aoyou.Framework.Cache
{
    /// <summary>
    /// 缓存类别的配置类
    /// </summary>
    public class CacheCategoryConfig : ConfigUnit
    {
        public List<CacheAdapter> CacheAdapters { get; set; }
    }

    /// <summary>
    /// 缓存适配器配置类
    /// </summary>
    public class CacheAdapter
    {
        [XmlAttribute(AttributeName = "name")]
        public string Name { get; set; }

        [XmlAttribute(AttributeName = "cacheCategory")]
        public CacheCategory CacheCategory { get; set; }
    }
}
